IS classOf[] in scala 2.8 different from 2.7?

Posted by redtank on Stack Overflow See other posts from Stack Overflow or by redtank
Published on 2010-04-17T12:02:00Z Indexed on 2010/04/17 12:13 UTC
Read the original article Hit count: 263

Filed under:
|

I have an interface from java

public class IJava { ... public java.lang.Class getType(); ... }

It is inherited in Scala

class CScala { def getType() = classOf[Foo] }

it worked in scala 2.7.7. But in 2.8.0.RC1, i get

type mismatch; found : java.lang.ClassFoo
required: java.lang.Class

How do i get java.langClass in Scala 2.8

© Stack Overflow or respective owner

Related posts about scala

Related posts about java.lang.class